import axios from 'axios'

// 数据请求
export default class Request {

  /**
   * get请求
   * @param {string} url 
   * @return Promise
   */
  get(url = '') {
    if (url === '') {
      return Promise.reject(new Error('数据为空'))
    }
    return axios.get(url)
  }

}